package java51.homework;

import java.io.File;
import java.util.Scanner;

public class FileByteTest {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入具体要被剪切的文件路径和文件名：");
		String s = sc.next();
		System.out.println("请输入具体要复制到的文件路径和被剪切的文件名：");
		String s1 = sc.next();
		File f = new File(s);
		File f1 = new File(s1);
		System.out.println("是否剪切成功：" + f.renameTo(f1));

	}

}
